<template>
  <div class="workshops_container">
      <!-- <dv-loading v-if="loading"></dv-loading> -->
      <list-header
      :type="type"
      :title="title"
      icon="cogs"
      searchplaceholder="请输入设备名称/编号"
      selectplaceholder="请选择安装地点"
       @on-search="SearchMthods"
      @on-index="resetMethods"
      :dateSel="true"
      :location="true"
    />
      <div class="workshops_main">
        <c-tbale 
        @delHandle="delHandle"
        :columns="columns"
        :tableData="tableData"
        :tableHeight="tableHeight"/>
        <div class="page_con">
        <el-pagination
          @current-change="currentchange"
          @prev-click="currentchange"
          @next-click="currentchange"
          :background="true"
          layout="prev, pager, next"
          :total="totalCount"
          :hide-on-single-page="totalCount < 2 ? true : false "
        >
        </el-pagination>
      </div>
      </div>
  </div>
</template>

<script>
import listHeader from "@/components/listHeader/index";
import cTbale from "../../../components/tablePage/tablePage";
import minix from "../../../mixins/table";
export default {
  components: {
    listHeader,
    cTbale,
  },
  mixins: [minix],
  data() {
    return{
      type:"inspection",
      title:"设备巡检",
      indexurl:"inspectionPage",
      delurl: "inspectionDel",
      columns:[
        { text: "设备名称", prop: "EQUIP_INFO.NAME", width: '9%' },
        { text: "设备编号", prop: "EQUIP_INFO.IDENTITY", width: '9%' },
        { text: "厂家", prop: "EQUIP_INFO.PRODUCTER", width: '9%' },
        { text: "生产日期", prop: "EQUIP_INFO.PRODUCT_DATE", width: '9%'},
        { text: "保修期", prop: "EQUIP_INFO.WARRANTY_PERIOD", width: '9%' },
        { text: "规格型号", prop: "EQUIP_INFO.PRODUCT_DATE", width: '8%' },
        { text: "安装地点", prop: "EQUIP_INFO.LOCATION", width: '8%' },
        // { text: "保养周期", prop: "EQUIP_INFO.MAINTENANCE", width: '7%' },
        { text: "巡检时间", prop: "createTime", width: '8%' },
        { text: "巡检人", prop: "PERSON", width: '7%' },
        { text: "班次", prop: "BANC", width: '4%' },
        { text: "状态", prop: "EQUIP_INFO.USED", width: '4%' }
      ],
    }
  },
};
</script>

<style>
</style>